package com.atomos.strategy.action.display
{
	import com.atomos.strategy.action.AbstractAction;
	import com.atomos.particle.Particle;
	import com.atomos.particle.DisplayObjectParticle;

	public class AlphaBlendAction extends AbstractAction
	{
		protected var _nBlendSpeed : Number;
		
		public function AlphaBlendAction ( blendSpeed : Number = 0 )
		{
			_nBlendSpeed = blendSpeed;
		}
		
		override public function process( particle : Particle ) : void
		{
			var p : DisplayObjectParticle = particle as DisplayObjectParticle;
			
			p.alpha -= _nBlendSpeed * _nTimeStep;
		}
	}
}